package com.vincent.vo;

import com.vincent.common.constant.RegValidatePattern;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by vincent on 15-1-3.
 */
public class MenuUpdateVO {
    @NotNull(message = "菜单名字不能为空")
    @Pattern(regexp = RegValidatePattern.MENU_NAME,message = "菜单名字格式错误")
    @Length(max = 50,message = "菜单名字格式错误")
    private String name;

    private String url;
    @NotNull(message = "菜单排序不能为空")
    private Integer order;
    @NotNull(message = "菜单图标不能为空")
    @Length(min = 1,message = "菜单图标不能为空")
    private String icon;
    @NotNull(message = "菜单Id不能为空")
    private Integer menuId;

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
